package com.hifar.test.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 失败数据模型
 * 记录处理失败的数据信息
 */
public class FailedData {
    
    /**
     * 任务ID
     */
    @JsonProperty("task_id")
    private String taskId;
    
    /**
     * 失败类型
     */
    @JsonProperty("type")
    private String type;
    
    /**
     * 失败原因
     */
    @JsonProperty("reason")
    private String reason;
    
    public FailedData() {}
    
    public FailedData(String taskId, String type, String reason) {
        this.taskId = taskId;
        this.type = type;
        this.reason = reason;
    }
    
    // Getters and Setters
    public String getTaskId() {
        return taskId;
    }
    
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public String getReason() {
        return reason;
    }
    
    public void setReason(String reason) {
        this.reason = reason;
    }
    
    @Override
    public String toString() {
        return "FailedData{" +
                "taskId='" + taskId + '\'' +
                ", type='" + type + '\'' +
                ", reason='" + reason + '\'' +
                '}';
    }
}
